package com.qd.pay.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;


@Data
@Accessors(chain = true)
public class OrderReportNotifyDTO {

    private String nid;

    @Size(max = 50, message = "orderId长度不能超过{max}位")
    private String orderId;

    @Size(max = 64, message = "outTradeNo长度不能超过{max}位")
    private String outTradeNo;

    @Size(max = 50, message = "thirdPartyOrder长度不能超过{max}位")
    private String thirdPartyOrder;

    private String notifyBody;

    private String notifyUrl;

    private LocalDateTime addTime;

    public void freeData() {
        this.nid = null;
        this.orderId = null;
        this.outTradeNo = null;
        this.thirdPartyOrder = null;
        this.notifyBody = null;
        this.addTime = null;
        this.notifyUrl = null;
    }
}
